package com.atguigu.principle.segregation.segregation1;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description: A 类通过接口Interface1 依赖(使用) C类，但是只会用到1,2,3方法
 * @create: 2022-01-06 22:41
 **/
public class A {
    public void depend1(Interface1 i){
        i.operation1();
    }
    public void depend2(Interface1 i){
        i.operation2();
    }
    public void depend3(Interface1 i){
        i.operation3();
    }
}
